/* pages/user/user.wxss */
.user-wrapper {
  height: 100vh;
  background-color: #f2e6c6;
  width: 100vw;
  position: relative;

  .user-wrapper {
    position: absolute;
    background-color: #f4f4f4;
    height: 72vh;
    width: 92vw;
    bottom: 0;
    border-top-left-radius: 80rpx;
    border-top-right-radius: 80rpx;
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .user-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 50rpx;
    margin-top: -60rpx;
    margin-bottom: 38rpx;

    .avatar-button {
      width: 192rpx;
      height: 192rpx;
      border-radius: 50%;
      padding: 0;
      margin: 0;

      .avatar {
        width: 192rpx;
        height: 192rpx;
        border-radius: 50%;
        background-color: black;
      }
    }

    .info {
      display: flex;
      align-items: flex-start;
      flex-direction: column;
      margin-top: 80rpx;
      margin-left: 30rpx;

      .name {
        font-size: 38rpx;
        font-weight: 500;
      }

      .studentId {
        font-size: 20rpx;
        margin-top: 8rpx;
        margin-right: 10rpx;
      }
    }
  }

  .user-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20rpx;

    .detail {
      font-size: 23rpx;
      font-weight: 440;
      margin-left: 50rpx;

      .sex {
        margin-bottom: 9rpx;
      }

      .subject {
        margin-bottom: 9rpx;
      }
    }

    .edit {
      background-color: #f0dfb1;
      letter-spacing: 1rpx;
      color: #fefefe;
      width: 200rpx;
      height: 56rpx;
      border-radius: 40rpx;
      font-size: 26rpx;
      text-align: center;
      line-height: 56rpx;
      font-weight: 500;
      padding: 0;
      margin-right: 40rpx;
    }
  }

  .user-operate {
    width: 92vw;
    height: 140rpx;
    border-radius: 30rpx;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #ffffff;
    margin-bottom: 30rpx;

    .operate-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;

      .operate-data {
        color: #5a84c8;
        font-size: 48rpx;
        font-weight: 450;
      }

      .operate-text {
        font-size: 24rpx;
      }
    }
  }

  .user-list {
    height: 400rpx;
    display: flex;
    flex-direction: column;

    .list-item:first-child {
      border-top-right-radius: 50rpx;
      border-top-left-radius: 50rpx;
    }

    .list-item:last-child {
      border-bottom-right-radius: 50rpx;
      border-bottom-left-radius: 50rpx;
    }

    .list-item {
      flex: 1;
      margin-bottom: 4rpx;
      background-color: #ffffff;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 4rpx solid #f4f4f4;

      .list-icon {
        width: 20%;
        height: 100%;
        display: flex;
        align-items: center;

        .icon {
          margin-left: 40rpx;
          width: 60rpx;
          height: 60rpx;
        }
      }

      .list-text {
        height: 100%;
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .text {
          font-weight: 450;
          font-size: 31rpx;
        }

        .arrow {
          margin-right: 10rpx;
          width: 0;
          height: 0;
          border-top: 18rpx solid transparent;
          border-bottom: 18rpx solid transparent;
          border-left: 15rpx solid #b1b1b1;
          border-right: 20rpx solid transparent;
          position: relative;

          &::after {
            position: absolute;
            width: 0;
            height: 0;
            content: "";
            border-top: 18rpx solid transparent;
            border-bottom: 18rpx solid transparent;
            border-left: 15rpx solid #ffffff;
            border-right: 20rpx solid transparent;
            top: -18rpx;
            right: -15rpx;
          }
        }
      }
    }
  }
}